<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8"/>
    <title>Test Report</title>
    <link href="assets/style.css" rel="stylesheet" type="text/css"/></head>
  <body onLoad="init()">
    <script>/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */


function toArray(iter) {
    if (iter === null) {
        return null;
    }
    return Array.prototype.slice.call(iter);
}

function find(selector, elem) {
    if (!elem) {
        elem = document;
    }
    return elem.querySelector(selector);
}

function find_all(selector, elem) {
    if (!elem) {
        elem = document;
    }
    return toArray(elem.querySelectorAll(selector));
}

function sort_column(elem) {
    toggle_sort_states(elem);
    var colIndex = toArray(elem.parentNode.childNodes).indexOf(elem);
    var key;
    if (elem.classList.contains('numeric')) {
        key = key_num;
    } else if (elem.classList.contains('result')) {
        key = key_result;
    } else {
        key = key_alpha;
    }
    sort_table(elem, key(colIndex));
}

function show_all_extras() {
    find_all('.col-result').forEach(show_extras);
}

function hide_all_extras() {
    find_all('.col-result').forEach(hide_extras);
}

function show_extras(colresult_elem) {
    var extras = colresult_elem.parentNode.nextElementSibling;
    var expandcollapse = colresult_elem.firstElementChild;
    extras.classList.remove("collapsed");
    expandcollapse.classList.remove("expander");
    expandcollapse.classList.add("collapser");
}

function hide_extras(colresult_elem) {
    var extras = colresult_elem.parentNode.nextElementSibling;
    var expandcollapse = colresult_elem.firstElementChild;
    extras.classList.add("collapsed");
    expandcollapse.classList.remove("collapser");
    expandcollapse.classList.add("expander");
}

function show_filters() {
    var filter_items = document.getElementsByClassName('filter');
    for (var i = 0; i < filter_items.length; i++)
        filter_items[i].hidden = false;
}

function add_collapse() {
    // Add links for show/hide all
    var resulttable = find('table#results-table');
    var showhideall = document.createElement("p");
    showhideall.innerHTML = '<a href="javascript:show_all_extras()">Show all details</a> / ' +
                            '<a href="javascript:hide_all_extras()">Hide all details</a>';
    resulttable.parentElement.insertBefore(showhideall, resulttable);

    // Add show/hide link to each result
    find_all('.col-result').forEach(function(elem) {
        var collapsed = get_query_parameter('collapsed') || 'Passed';
        var extras = elem.parentNode.nextElementSibling;
        var expandcollapse = document.createElement("span");
        if (extras.classList.contains("collapsed")) {
            expandcollapse.classList.add("expander")
        } else if (collapsed.includes(elem.innerHTML)) {
            extras.classList.add("collapsed");
            expandcollapse.classList.add("expander");
        } else {
            expandcollapse.classList.add("collapser");
        }
        elem.appendChild(expandcollapse);

        elem.addEventListener("click", function(event) {
            if (event.currentTarget.parentNode.nextElementSibling.classList.contains("collapsed")) {
                show_extras(event.currentTarget);
            } else {
                hide_extras(event.currentTarget);
            }
        });
    })
}

function get_query_parameter(name) {
    var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
    return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
}

function init () {
    reset_sort_headers();

    add_collapse();

    show_filters();

    sort_column(find('.initial-sort'));

    find_all('.sortable').forEach(function(elem) {
        elem.addEventListener("click",
                              function(event) {
                                  sort_column(elem);
                              }, false)
    });

};

function sort_table(clicked, key_func) {
    var rows = find_all('.results-table-row');
    var reversed = !clicked.classList.contains('asc');
    var sorted_rows = sort(rows, key_func, reversed);
    /* Whole table is removed here because browsers acts much slower
     * when appending existing elements.
     */
    var thead = document.getElementById("results-table-head");
    document.getElementById('results-table').remove();
    var parent = document.createElement("table");
    parent.id = "results-table";
    parent.appendChild(thead);
    sorted_rows.forEach(function(elem) {
        parent.appendChild(elem);
    });
    document.getElementsByTagName("BODY")[0].appendChild(parent);
}

function sort(items, key_func, reversed) {
    var sort_array = items.map(function(item, i) {
        return [key_func(item), i];
    });

    sort_array.sort(function(a, b) {
        var key_a = a[0];
        var key_b = b[0];

        if (key_a == key_b) return 0;

        if (reversed) {
            return (key_a < key_b ? 1 : -1);
        } else {
            return (key_a > key_b ? 1 : -1);
        }
    });

    return sort_array.map(function(item) {
        var index = item[1];
        return items[index];
    });
}

function key_alpha(col_index) {
    return function(elem) {
        return elem.childNodes[1].childNodes[col_index].firstChild.data.toLowerCase();
    };
}

function key_num(col_index) {
    return function(elem) {
        return parseFloat(elem.childNodes[1].childNodes[col_index].firstChild.data);
    };
}

function key_result(col_index) {
    return function(elem) {
        var strings = ['Error', 'Failed', 'Rerun', 'XFailed', 'XPassed',
                       'Skipped', 'Passed'];
        return strings.indexOf(elem.childNodes[1].childNodes[col_index].firstChild.data);
    };
}

function reset_sort_headers() {
    find_all('.sort-icon').forEach(function(elem) {
        elem.parentNode.removeChild(elem);
    });
    find_all('.sortable').forEach(function(elem) {
        var icon = document.createElement("div");
        icon.className = "sort-icon";
        icon.textContent = "vvv";
        elem.insertBefore(icon, elem.firstChild);
        elem.classList.remove("desc", "active");
        elem.classList.add("asc", "inactive");
    });
}

function toggle_sort_states(elem) {
    //if active, toggle between asc and desc
    if (elem.classList.contains('active')) {
        elem.classList.toggle('asc');
        elem.classList.toggle('desc');
    }

    //if inactive, reset all other functions and add ascending active
    if (elem.classList.contains('inactive')) {
        reset_sort_headers();
        elem.classList.remove('inactive');
        elem.classList.add('active');
    }
}

function is_all_rows_hidden(value) {
  return value.hidden == false;
}

function filter_table(elem) {
    var outcome_att = "data-test-result";
    var outcome = elem.getAttribute(outcome_att);
    class_outcome = outcome + " results-table-row";
    var outcome_rows = document.getElementsByClassName(class_outcome);

    for(var i = 0; i < outcome_rows.length; i++){
        outcome_rows[i].hidden = !elem.checked;
    }

    var rows = find_all('.results-table-row').filter(is_all_rows_hidden);
    var all_rows_hidden = rows.length == 0 ? true : false;
    var not_found_message = document.getElementById("not-found-message");
    not_found_message.hidden = !all_rows_hidden;
}
</script>
    <h1>test_report.html</h1>
    <p>Report generated on 15-Apr-2021 at 13:40:41 by <a href="https://pypi.python.org/pypi/pytest-html">pytest-html</a> v2.1.1</p>
    <h2>Environment</h2>
    <table id="environment">
      <tr>
        <td>JAVA_HOME</td>
        <td>D:\jdk</td></tr>
      <tr>
        <td>Packages</td>
        <td>{"pluggy": "0.13.1", "py": "1.10.0", "pytest": "5.4.3"}</td></tr>
      <tr>
        <td>Platform</td>
        <td>Windows-10-10.0.17763-SP0</td></tr>
      <tr>
        <td>Plugins</td>
        <td>{"html": "2.1.1", "metadata": "1.11.0"}</td></tr>
      <tr>
        <td>Python</td>
        <td>3.8.5</td></tr></table>
    <h2>Summary</h2>
    <p>1 tests ran in 0.25 seconds. </p>
    <p class="filter" hidden="true">(Un)check the boxes to filter the results.</p><input checked="true" class="filter" data-test-result="passed" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="passed">0 passed</span>, <input checked="true" class="filter" data-test-result="skipped" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="skipped">0 skipped</span>, <input checked="true" class="filter" data-test-result="failed" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="failed">1 failed</span>, <input checked="true" class="filter" data-test-result="error" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="error">0 errors</span>, <input checked="true" class="filter" data-test-result="xfailed" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="xfailed">0 expected failures</span>, <input checked="true" class="filter" data-test-result="xpassed" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="xpassed">0 unexpected passes</span>
    <h2>Results</h2>
    <table id="results-table">
      <thead id="results-table-head">
        <tr>
          <th class="sortable result initial-sort" col="result">Result</th>
          <th class="sortable" col="name">Test</th>
          <th class="sortable numeric" col="duration">Duration</th>
          <th>Links</th></tr>
        <tr hidden="true" id="not-found-message">
          <th colspan="4">No results found. Try to check the filters</th></tr></thead>
      <tbody class="failed results-table-row">
        <tr>
          <td class="col-result">Failed</td>
          <td class="col-name">test01_test.py::TestCaseTest01::test_start</td>
          <td class="col-duration">0.01</td>
          <td class="col-links"></td></tr>
        <tr>
          <td class="extra" colspan="4">
            <div class="log">..\..\selenium\venv\lib\site-packages\httprunner\parser.py:229: in get_mapping_variable<br/>    return variables_mapping[variable_name]<br/><span class="error">E   KeyError: &#x27;gwZHxfv36rrIHbNgAwVvdp26kj0zxvocbnFge49zb7slFIAQ_Ub0u8_ivVufdCB4NYfI0QxIrEAPHpTQoGN4Fw0pC2VjmPXTNJc9LFOSdNb&#x27;</span><br/><br/>During handling of the above exception, another exception occurred:<br/>..\..\selenium\venv\lib\site-packages\httprunner\runner.py:455: in test_start<br/>    return self.run_testcase(<br/>..\..\selenium\venv\lib\site-packages\httprunner\runner.py:359: in run_testcase<br/>    extract_mapping = self.__run_step(step)<br/>..\..\selenium\venv\lib\site-packages\httprunner\runner.py:295: in __run_step<br/>    step_data = self.__run_step_request(step)<br/>..\..\selenium\venv\lib\site-packages\httprunner\runner.py:145: in __run_step_request<br/>    parsed_request_dict = parse_data(<br/>..\..\selenium\venv\lib\site-packages\httprunner\parser.py:416: in parse_data<br/>    parsed_value = parse_data(value, variables_mapping, functions_mapping)<br/>..\..\selenium\venv\lib\site-packages\httprunner\parser.py:416: in parse_data<br/>    parsed_value = parse_data(value, variables_mapping, functions_mapping)<br/>..\..\selenium\venv\lib\site-packages\httprunner\parser.py:405: in parse_data<br/>    return parse_string(raw_data, variables_mapping, functions_mapping)<br/>..\..\selenium\venv\lib\site-packages\httprunner\parser.py:365: in parse_string<br/>    var_value = get_mapping_variable(var_name, variables_mapping)<br/>..\..\selenium\venv\lib\site-packages\httprunner\parser.py:231: in get_mapping_variable<br/>    raise exceptions.VariableNotFound(<br/><span class="error">E   httprunner.exceptions.VariableNotFound: gwZHxfv36rrIHbNgAwVvdp26kj0zxvocbnFge49zb7slFIAQ_Ub0u8_ivVufdCB4NYfI0QxIrEAPHpTQoGN4Fw0pC2VjmPXTNJc9LFOSdNb not found in {}</span><br/> ------------------------------Captured stderr call------------------------------ <br/>--- Logging error in Loguru Handler #0 ---
Record was: {&#x27;elapsed&#x27;: datetime.timedelta(seconds=1, microseconds=278558), &#x27;exception&#x27;: None, &#x27;extra&#x27;: {}, &#x27;file&#x27;: (name=&#x27;runner.py&#x27;, path=&#x27;f:\\python-project\\selenium\\venv\\lib\\site-packages\\httprunner\\runner.py&#x27;), &#x27;function&#x27;: &#x27;test_start&#x27;, &#x27;level&#x27;: (name=&#x27;INFO&#x27;, no=20, icon=&#x27;ℹ️&#x27;), &#x27;line&#x27;: 450, &#x27;message&#x27;: &#x27;Start to run testcase: testcase description, TestCase ID: eba40865-229e-49ac-9ab1-6119e3703747&#x27;, &#x27;module&#x27;: &#x27;runner&#x27;, &#x27;name&#x27;: &#x27;httprunner.runner&#x27;, &#x27;process&#x27;: (id=14032, name=&#x27;MainProcess&#x27;), &#x27;thread&#x27;: (id=9036, name=&#x27;MainThread&#x27;), &#x27;time&#x27;: datetime(2021, 4, 15, 13, 40, 41, 703908, tzinfo=datetime.timezone(datetime.timedelta(seconds=28800), &#x27;中国标准时间&#x27;))}
Traceback (most recent call last):
  File &quot;f:\python-project\selenium\venv\lib\site-packages\loguru\_handler.py&quot;, line 177, in emit
    self._sink.write(str_record)
  File &quot;f:\python-project\selenium\venv\lib\site-packages\loguru\_simple_sinks.py&quot;, line 26, in write
    self._stream.write(message)
  File &quot;f:\python-project\selenium\venv\lib\site-packages\colorama\ansitowin32.py&quot;, line 41, in write
    self.__convertor.write(text)
  File &quot;f:\python-project\selenium\venv\lib\site-packages\colorama\ansitowin32.py&quot;, line 162, in write
    self.write_and_convert(text)
  File &quot;f:\python-project\selenium\venv\lib\site-packages\colorama\ansitowin32.py&quot;, line 187, in write_and_convert
    self.write_plain_text(text, cursor, start)
  File &quot;f:\python-project\selenium\venv\lib\site-packages\colorama\ansitowin32.py&quot;, line 196, in write_plain_text
    self.wrapped.flush()
OSError: [WinError 6] 句柄无效。
--- End of logging error ---
--- Logging error in Loguru Handler #0 ---
Record was: {&#x27;elapsed&#x27;: datetime.timedelta(seconds=1, microseconds=279534), &#x27;exception&#x27;: None, &#x27;extra&#x27;: {}, &#x27;file&#x27;: (name=&#x27;runner.py&#x27;, path=&#x27;f:\\python-project\\selenium\\venv\\lib\\site-packages\\httprunner\\runner.py&#x27;), &#x27;function&#x27;: &#x27;__run_step&#x27;, &#x27;level&#x27;: (name=&#x27;INFO&#x27;, no=20, icon=&#x27;ℹ️&#x27;), &#x27;line&#x27;: 292, &#x27;message&#x27;: &#x27;run step begin: /login &gt;&gt;&gt;&gt;&gt;&gt;&#x27;, &#x27;module&#x27;: &#x27;runner&#x27;, &#x27;name&#x27;: &#x27;httprunner.runner&#x27;, &#x27;process&#x27;: (id=14032, name=&#x27;MainProcess&#x27;), &#x27;thread&#x27;: (id=9036, name=&#x27;MainThread&#x27;), &#x27;time&#x27;: datetime(2021, 4, 15, 13, 40, 41, 704884, tzinfo=datetime.timezone(datetime.timedelta(seconds=28800), &#x27;中国标准时间&#x27;))}
Traceback (most recent call last):
  File &quot;f:\python-project\selenium\venv\lib\site-packages\loguru\_handler.py&quot;, line 177, in emit
    self._sink.write(str_record)
  File &quot;f:\python-project\selenium\venv\lib\site-packages\loguru\_simple_sinks.py&quot;, line 26, in write
    self._stream.write(message)
  File &quot;f:\python-project\selenium\venv\lib\site-packages\colorama\ansitowin32.py&quot;, line 41, in write
    self.__convertor.write(text)
  File &quot;f:\python-project\selenium\venv\lib\site-packages\colorama\ansitowin32.py&quot;, line 162, in write
    self.write_and_convert(text)
  File &quot;f:\python-project\selenium\venv\lib\site-packages\colorama\ansitowin32.py&quot;, line 187, in write_and_convert
    self.write_plain_text(text, cursor, start)
  File &quot;f:\python-project\selenium\venv\lib\site-packages\colorama\ansitowin32.py&quot;, line 196, in write_plain_text
    self.wrapped.flush()
OSError: [WinError 6] 句柄无效。
--- End of logging error ---
--- Logging error in Loguru Handler #0 ---
Record was: {&#x27;elapsed&#x27;: datetime.timedelta(seconds=1, microseconds=280510), &#x27;exception&#x27;: None, &#x27;extra&#x27;: {}, &#x27;file&#x27;: (name=&#x27;runner.py&#x27;, path=&#x27;f:\\python-project\\selenium\\venv\\lib\\site-packages\\httprunner\\runner.py&#x27;), &#x27;function&#x27;: &#x27;test_start&#x27;, &#x27;level&#x27;: (name=&#x27;INFO&#x27;, no=20, icon=&#x27;ℹ️&#x27;), &#x27;line&#x27;: 460, &#x27;message&#x27;: &#x27;generate testcase log: F:\\python-project\\H5-LB-API\\logs\\eba40865-229e-49ac-9ab1-6119e3703747.run.log&#x27;, &#x27;module&#x27;: &#x27;runner&#x27;, &#x27;name&#x27;: &#x27;httprunner.runner&#x27;, &#x27;process&#x27;: (id=14032, name=&#x27;MainProcess&#x27;), &#x27;thread&#x27;: (id=9036, name=&#x27;MainThread&#x27;), &#x27;time&#x27;: datetime(2021, 4, 15, 13, 40, 41, 705860, tzinfo=datetime.timezone(datetime.timedelta(seconds=28800), &#x27;中国标准时间&#x27;))}
Traceback (most recent call last):
  File &quot;f:\python-project\selenium\venv\lib\site-packages\httprunner\parser.py&quot;, line 229, in get_mapping_variable
    return variables_mapping[variable_name]
KeyError: &#x27;gwZHxfv36rrIHbNgAwVvdp26kj0zxvocbnFge49zb7slFIAQ_Ub0u8_ivVufdCB4NYfI0QxIrEAPHpTQoGN4Fw0pC2VjmPXTNJc9LFOSdNb&#x27;

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File &quot;f:\python-project\selenium\venv\lib\site-packages\httprunner\runner.py&quot;, line 455, in test_start
    return self.run_testcase(
  File &quot;f:\python-project\selenium\venv\lib\site-packages\httprunner\runner.py&quot;, line 359, in run_testcase
    extract_mapping = self.__run_step(step)
  File &quot;f:\python-project\selenium\venv\lib\site-packages\httprunner\runner.py&quot;, line 295, in __run_step
    step_data = self.__run_step_request(step)
  File &quot;f:\python-project\selenium\venv\lib\site-packages\httprunner\runner.py&quot;, line 145, in __run_step_request
    parsed_request_dict = parse_data(
  File &quot;f:\python-project\selenium\venv\lib\site-packages\httprunner\parser.py&quot;, line 416, in parse_data
    parsed_value = parse_data(value, variables_mapping, functions_mapping)
  File &quot;f:\python-project\selenium\venv\lib\site-packages\httprunner\parser.py&quot;, line 416, in parse_data
    parsed_value = parse_data(value, variables_mapping, functions_mapping)
  File &quot;f:\python-project\selenium\venv\lib\site-packages\httprunner\parser.py&quot;, line 405, in parse_data
    return parse_string(raw_data, variables_mapping, functions_mapping)
  File &quot;f:\python-project\selenium\venv\lib\site-packages\httprunner\parser.py&quot;, line 365, in parse_string
    var_value = get_mapping_variable(var_name, variables_mapping)
  File &quot;f:\python-project\selenium\venv\lib\site-packages\httprunner\parser.py&quot;, line 231, in get_mapping_variable
    raise exceptions.VariableNotFound(
httprunner.exceptions.VariableNotFound: gwZHxfv36rrIHbNgAwVvdp26kj0zxvocbnFge49zb7slFIAQ_Ub0u8_ivVufdCB4NYfI0QxIrEAPHpTQoGN4Fw0pC2VjmPXTNJc9LFOSdNb not found in {}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File &quot;f:\python-project\selenium\venv\lib\site-packages\loguru\_handler.py&quot;, line 177, in emit
    self._sink.write(str_record)
  File &quot;f:\python-project\selenium\venv\lib\site-packages\loguru\_simple_sinks.py&quot;, line 26, in write
    self._stream.write(message)
  File &quot;f:\python-project\selenium\venv\lib\site-packages\colorama\ansitowin32.py&quot;, line 41, in write
    self.__convertor.write(text)
  File &quot;f:\python-project\selenium\venv\lib\site-packages\colorama\ansitowin32.py&quot;, line 162, in write
    self.write_and_convert(text)
  File &quot;f:\python-project\selenium\venv\lib\site-packages\colorama\ansitowin32.py&quot;, line 187, in write_and_convert
    self.write_plain_text(text, cursor, start)
  File &quot;f:\python-project\selenium\venv\lib\site-packages\colorama\ansitowin32.py&quot;, line 196, in write_plain_text
    self.wrapped.flush()
OSError: [WinError 6] 句柄无效。
--- End of logging error ---
<br/></div></td></tr></tbody></table></body></html>